class PayCallback < ApplicationRecord
  belongs_to :order, foreign_key: :order_id, class_name: "CoachOrder", primary_key: :order_no
  has_one :appointment, through: :order
  enum pay_type: {"支付宝" => 1, "微信" => 2}
  enum status: [:pending, :refunded]
end
